from setuptools import setup, Extension

with open("README.md", "r") as fh:
    long_description = fh.read()

sources = [
    'lorun/cext/lorun.c',
    'lorun/cext/convert.c',
    'lorun/cext/access.c',
    'lorun/cext/limit.c',
    'lorun/cext/run.c',
    'lorun/cext/diff.c'
]

setup(
    name='lorun',
    version='1.0.3',
    author='LiSoul',
    author_email='2833896014@qq.com',
    description='loco program runner core',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://gitee.com/renchenghui/lorun',
    ext_modules=[Extension('lorun/_lorun_ext', sources=sources)],
    packages=['lorun'],
    classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
    ],
)
